﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace SampleTryouts.Models
{
    public class ShoppingCart : IShoppingCart
    {
        private IValueCalculator Calc;

        public ShoppingCart(IValueCalculator valueCalculator)
        {
            Calc = valueCalculator;
        }

        public IEnumerable<Product> Products { get; set; }

        public decimal CalculateProductTotal()
        {
            var s = "test megavarnan selvarja";
            return Calc.ValueProducts(Products);
        }

    }
}